<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>task_edit</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/style.css" />
</head>
<body>
	<div class="container">
		<!--header start-->
		<div class="header">
			<h1 class="logo"><a href="">项目管理系统</a></h1>
		</div>
		<!--header end-->
		<div class="content">
			<div class="row">
				<div class="span9">
					<div class="list">
						<span><i class="icon-hand-right"></i>编辑任务</span>
					</div>
					<div class="newproduct">
						<form class="form-horizontal" action="taskedit.jspx" method="post" id="myform" autocomplete="off">
							<div class="control-group">
								<label class="control-label">任务名称</label>
								<div class="controls">
									<input type="hidden" name="toUrl" value="${requestScope.toUrl }">
									<input type="hidden" name="id" value="${task.id }">
									<input type="text" disabled value="${task.name }" class="span5">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">开始时间</label>
								<div class="controls">
									<input type="text" disabled value="${task.starttime }" class="span5">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">截止时间</label>
								<div class="controls">
									<input type="text" disabled value="${task.endtime }" class="span5">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">任务描述</label>
								<div class="controls">
									<textarea rows="6"  class="span5"  disabled >${task.desc }</textarea>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">状态</label>
								<div class="controls">
									<select name="state" id="" class="span5 {required:true,messages:{required:'请输入当前进度'}}">
										<option value="新任务">新任务</option>
										<option value="进行中">进行中</option>
										<option value="已完成">已完成</option>
									</select>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" >级别</label>
								<div class="controls">
									<select name="" id="" disabled>
										<option value="">${task.level }</option>
										<option value="">重要紧急</option>
										<option value="">重要不紧急</option>
										<option value="">紧急不重要</option>
										<option value="">不紧急不重要</option>
									</select>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">负责人</label>
								<div class="controls">
									<select name="" id="" disabled>
										<option value="">${employee.name }</option>
									</select>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">当前进度</label>
								<div class="controls">
									<input type="text" placeholder="当前进度" class="span5 {required:true,digits:true,messages:{required:'请输入当前进度',digits:'只能输入整数'}}" name="rate">
								</div>
							</div>
							<input class="hide" id="goalid" value="${sessionScope.curr_goal.id }">
							<div class="form-actions">
								<button type="button" class="btn btn-primary" id="save">保存</button>
								<button type="button" class="btn" id="return">返回</button>
							</div>
						</form>
					</div>
				</div>
				<div class="span3"></div>
			</div>
		</div>
		<div class="footer">
			<p>Copyright © 2013 xxx版权所有</p>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="js/jquery.metadata.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#myform").validate();
			$("#save").click(function(){
				$(".form-horizontal").submit();
			});
			$("#return").click(function(){
				var id = $("#goalid").val();
				window.location="tasklist.jspx?id="+id;
			});
		});
	</script>
</body>
</html>